/*
 * Stack.h
 *
 *  Created on: Dec 5, 2011
 *  Author: sang lei
 */


#ifndef STACK_H_
#define STACK_H_

#include "../headers/comm_struct.h"
#define DEFAULT_STACK_SIZE 200

/* 函数声明 */

int init_stack_array(Stack_Array *const pstk,const unsigned int byte_len);
int drop_stack_array(Stack_Array *pstk);
int push_stack_array(Stack_Array *pstk,void *pvalue);
int pop_stack_array(Stack_Array *pstk,void *prest);
int is_empty_array(const Stack_Array*const pstk);
int get_stack_size(const Stack_Array*const pstk);

//static void push(stackType e);
//static stackType pop();
//static int isEmpty();
//int size();
//void empty();

#endif /* STACK_H_ */
